package com.middlegroup.pay.service;

import com.baomidou.mybatisplus.service.IService;
import com.middlegroup.pay.entity.SystemCfg;

import java.util.Map;

/**
 * Created by pc on 2019/1/15.
 */
public interface SystemCfgService extends IService<SystemCfg> {

    /**初始化配置
     * @return
     */
    Map<String,Map<String,String>> getConfigs();

    /**刷新配置
     * @return
     */
    Map<String,Map<String,String>> refreshConfigs();

    /**获取配置
     * @param category
     * @param name
     * @return
     */
    SystemCfg getConfig(String category,String name);

    /**根据category+name获取配置值
     * @param category
     * @param name
     * @return
     */
    String getConfigString(String category, String name);
}
